home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
nt
/
zkf102.zip
/
what.bat
< prev
next >
Wrap
DOS Batch File
|
1995-01-04
|
775b
|
14 lines
@zkbat what
// This looks at all the filenames in the current directory, gets the
// filename extension of each, sorts them, filters out duplicates, and
// writes the result in 20 4-character columns. There will usually be
// less than 20 extensions, so the output will usually be one line, with
// just some of the 20 columns occupied.
// The purpose of this is to show you all the filename extensions that
// exist in the current directory without requiring you to look at all
// the filenames. If the output seems "tabulated", i.e., if the first
// 3-character extension output is blank, that means there are one or
// more filenames that have no extension at all, which is considered a
// blank extension.
write(cols(20,4,uniq(sort(exts(globm("*.*"))))));